package com.example.oldkingdom;

import com.example.oldkingdom.activities.Explore;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;

public class MainActivity extends Activity implements OnClickListener
{

	public static MainActivity Instance;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		Instance = this;
		setContentView(R.layout.activity_main);
		View startButton = findViewById(R.id.Start);
		startButton.setOnClickListener(this);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}
	
	public void onClick(View v)
	{
		switch(v.getId())
		{
			case R.id.Start:
				Intent i = new Intent(this, Explore.class);
				startActivity(i);
				//setContentView(Ex)
				break;
		}
	}

	
}
